
package com.utilstest.jsonutils.beans;

import java.util.ArrayList;
import java.util.List;

import com.utils.jsonutils.annotation.BooleanFormat;
import com.utils.jsonutils.annotation.ItemType;
import com.utils.jsonutils.annotation.SerializedName;

public class Account {

	@SerializedName("name")
	private String nameTest;

	private int keyPrefix;
	private boolean layoutable;
	private Urls urls;

	private String ayyanarwelcometoall;

	@BooleanFormat(trueFormat = "Y", falseFormat = "N")
	private boolean isDeleted;

	@ItemType(value = Fields.class)
	private List<Fields> fields;

	public void setKeyPrefix(int keyPrefix) {
		this.keyPrefix = keyPrefix;
	}

	public int getKeyPrefix() {
		return keyPrefix;
	}

	public void setLayoutable(boolean layoutable) {
		this.layoutable = layoutable;
	}

	public boolean isLayoutable() {
		return layoutable;
	}

	public void setUrls(Urls urls) {
		this.urls = urls;
	}

	public Urls getUrls() {
		return urls;
	}

	public void addFields(Fields fields) {
		if(this.fields == null){
			this.fields = new ArrayList<Fields>();
		}
		this.fields.add(fields);
	}

	public List<Fields> getFields() {
		return fields;
	}

	public void setNameTest(String nameTest) {
		this.nameTest = nameTest;
	}

	public String getNameTest() {
		return nameTest;
	}

	public void setDeleted(boolean isDeleted) {
		this.isDeleted = isDeleted;
	}

	public boolean isDeleted() {
		return isDeleted;
	}
}
